home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: news.chalmers.se!sunic!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!dsinc!scala!jesup
- From: jesup@scala.scala.com ("Randell Jesup")
- Subject: Re: Freeing system memory
- Message-ID: <1994May27.011200.9176@scala.scala.com>
- Date: Fri, 27 May 1994 01:12:00 GMT
- References: <zpb923a8Y8HbZ101@bamp.berlinet.in-berlin.de>
- Organization: SCALA, Inc.
- Lines: 22
-
- >DA> if I use AvailMem it reports the maximum size of free chip/fastmem. To gain more free memory I can Closeworkbench().
- >DA> Does anyone have an idea of furthermore temporary CloseDowns which does not void the system,
-
- >getmem(1000000000,...)
- >
- >If AmigaDos cannot find any memory-chunk of that size, it frees all
- >unused fonts and libraries in memory (normally they are not released
- >immediately after a "closelibrary"/"closefont"). Of course this getmem
- >will fail (return 0) but I'm sure AvailMem will show you more memory
- >as before.
-
- Be careful: on a machine with VM software, you might actually GET
- the 100 MB of "memory". I advise being paranoid, and if the allocation
- by some chance succeeds, free the memory.
-
- --
- Randell Jesup, Scala US R&D
- Randell.Jesup@scala.com
- Ex-Commodore-Amiga Engineer, class of '94
- #include <std/disclaimer>
-